package com.zq.download.utils;

import android.database.sqlite.SQLiteOpenHelper;

import com.zq.db.bean.SQLBean;
import com.zq.db.dao.Dao;
import com.zq.db.sql.factory.SQLFactory;

/**
 * Created by zhangqiang on 17-6-8.
 */

public class DBUtils{

    public static <T extends SQLBean> Dao<T> getDao(SQLiteOpenHelper sqLiteOpenHelper,Class<T> tableClass){

        return SQLFactory.IMPL.getDao(SQLFactory.IMPL.getAndroidSQL(sqLiteOpenHelper),tableClass);
    }

}
